package com.kk.app.model;

import androidx.databinding.BaseObservable;

import com.kk.app.IMediaControl;

/**
 * @author wk
 * @date 2024/12/25 18:59
 * @describe
 */
public class PlayerModel extends BaseObservable implements IMediaControl {


    private IMediaControl mMediaControl = null;

    public void setMediaControl(IMediaControl mediaControl) {
        mMediaControl = mediaControl;
    }

    @Override
    public void nextSong() {
        if (mMediaControl != null) {
            mMediaControl.nextSong();
        }
    }

    @Override
    public void showMVDisplay(boolean show) {
        if (mMediaControl != null) {
            mMediaControl.showMVDisplay(show);
        }
    }

    @Override
    public void autoTestControl(boolean start) {
        if (mMediaControl != null) {
            mMediaControl.autoTestControl(start);
        }
    }
}
